/* file      : libpq/version.h.in -*- C -*-
 * copyright : Copyright (c) 2016-2019 Code Synthesis Ltd
 * license   : PostgreSQL License; see accompanying COPYRIGHT file
 */

#ifndef PG_MAJORVERSION /* Note: using the version macro itself. */

/*
 * Note that staring PostgreSQL 10 the release version schema changed (see
 * build/bootstrap.build for details).
 */
#if 9 < 10
# define PG_MAJORVERSION "9.6"
#else
# error "change PG_MAJORVERSION macro definition"
# define PG_MAJORVERSION "9"
#endif

/*
 * Is valid for both old and new version schemes (see above).
 */
#define PG_VERSION_NUM (10000 * 9 + \
                          100 * 6 + \
                                5)

#endif /* PG_MAJORVERSION */
